<?php
return array(
        'preg_arr'=>array(
                'taobao'=>array(
                        'title'=>'/<div\s+class="tb-detail-hd">\s+<h3>(.+)<\/h3>/',
                        'img'=>'/id="J_ImgBooth"\s+src="([^\"]*)"[\s+data-hasZoom]?/',
                        'price'=>'/class="tb-rmb-num">([^<>]*)<\/em>/',
                        'charset'=>'gbk'    
                ),
                'tmall'=>array(
                        'title'=>'/\s+class="[tb-]*detail-hd">\s+<h3>\s*(.*)\s*<\/h3>|<h3\s+class=\"tb-tit\">(.*)<\/h3>/',
                        'img'=>'/id="J_ImgBooth"\s+src="([^\"]*)"\s+data-hasZoom/',
                        'price'=>'/id="J_StrPrice"[^<>]*>([^<>]+\d+)<\//',
                        'charset'=>'gbk'    
                ),
                'vancl'=>array(
                        'title'=>'/<title>([^<>]*)<\/title>/',
                        'img'=>'/<img\s+id="midimg"\s+.*src="([^\"]*)"/',
                        'price'=>'/<span>￥<strong>([^<>]*\d+)<\/strong><\/span>/',
                        'charset'=>'utf-8'
                ),
                'm18'=>array(
                        'title'=>'/<h1\s+class="dib fl pt5 fb c3 f16 yahei">[\s\n]*(.*)[\s\n]*</',
                        'img'=>'/id="J_zoom"\s*.*>[\s\n]*<img\s+.*\s+oriSrc=\"([^\"]*)\"\s*.*>/',
                        'price'=>'/id="stylePrice">([0-9]+\.[0-9]{0,2})<\/span>/',
                        'charset'=>'utf-8'    
                ),
                'paipai'=>array(    
                        'title'=>'/>([^<>]*)<\/h1>/',
                        'img'=>'/picList:\[\["([^\"]+)"/',
                        'price'=>'/id="commodityCurrentPrice"[^<>]*>([^<>]*\d+)<\/em>/',
                        'charset'=>'gbk'
                ),
                'moonbasa'=>array(    
                        'title'=>'/<h2[^<>]*>\s*([^<>]*)</',
                        'img'=>'/<img[^<>]+class="thurmimg\s+smllimg"[^<>]+src=\'([^\"]+)\'/',
                        'price'=>'/<b\s+class="detailprice">￥([0-9]+\.[0-9]{0,2})<\/b>/',
                        'charset'=>'utf-8'    
                ),
                'mbaobao'=>array(    
                        'title'=>'/<h1\s+class="goods-title">([^<>]*)<span/',
                        'img'=>'/smallImage:\s+\'([^\']+)\'"><i>/',
                        'price'=>'/<\/em>([0-9]+\.[0-9]{0,2})<\/span><\/div><\/li>/',
                        'charset'=>'utf-8'    
                ),
                'okbuy'=>array(    
                        'title'=>'/<h1\s+class="pProductTitleName">[^\d]*<strong>([^<>]*)<\//',
                        'img'=>'/<p\s+class="pBigPic"><img\s+src="(.+)"\s+name="targetimage"/',
                        'price'=>'/<p\s+class="textPriceOther">([^<>]+)[^\d]+([^<>]+)</',
                        'charset'=>'utf-8'    
                ),
                'letao'=>array(    
                        'title'=>'/<h1>([^<>]+)<\/h1>/',
                        'img'=>'/id="img_0"\s+focussrc="([^\"]+)"/',
                        'price'=>'/class="ltprice big">([\d]+)[^<>]+<\/i>/',
                        'charset'=>'utf-8'                            
                ),
                'shishangqiyi'=>array(
                        'title'=>'/<table\s+width="420".*>[^<>]*<tr>[^<>]*<td>[^<>]*(?:|<span class="style1">)<strong>([^<>]+)/',
                        'img'=>'/<table\s+width="260"[^<>]+>[^\d]+<img\s+src="([^\"]+)"/',
                        'price'=>'/<strong>([0-9]+)元<\/strong>[^<>]*<\/td>/',
                        'charset'=>'utf-8'    
                ),
                'lamiu'=>array(
                        'title'=>'/h1\s+class="c333[^\"]*">([^<>]*)</',
                        'img'=>'/<img\s+id="main_img_url"[^<>]+bpic="([^\"]+)"/',
                        'price'=>'/var\s+_goodsPrice\s+=\s+\'([0-9]+\.[0-9]{0,2})\'/',
                        'charset'=>'utf-8'
                ),
                '5lux'=>array(
                        'title'=>'/<font\s+class=\'goodsname\'>([^\/]+)/',
                        'img'=>'/<div\sclass="imgInfo">\s+<a\s+href="(.+)"\s+rel=/',
                        'price'=>'/id="ECS_SHOPPRICE">￥([^<>]+)元<\/font>/',
                        'charset'=>'utf-8'    
                ),
                'gaojie'=>array(
                        'title'=>'|class="title"><h2>([^<>]+)<|',
                        'img'=>'|<img\s+class="prod_img_308x400"\s+src="(.*)"\s+alt=|',
                        'price'=>'|id="unit_price">([0-9\.]+)元</|',
                        'charset'=>'utf-8'    
                ),
                'sephora'=>array(
                        'title'=>'|class="sdTitleL">\s*<h1>([^<>]+)<|',
                        'img'=>"|<p class=\"skuImg\"[^/]*([^']*)[^/]*([^\"]*)|",
                        'price'=>'|class="sdPrice">([0-9\.]+)\s*</|',
                        'charset'=>'gbk'    
                ),
                
        ),
        'shop_arr'=>array(
                'taobao'=>array(
                            'cn'=>'淘宝网',
                            'url'=>'www.taobao.com',
                            'ico'=>'http://www.taobao.com/favicon.ico'
                            ),
                'tmall'=>array(
                            'cn'=>'天猫',
                            'url'=>'www.tmall.com',
                            'ico'=>'http://img03.taobaocdn.com/tps/i3/T11DqnXoXEXXXXXXXX-16-16.ico'
                            ),
                'vancl'=>array(
                            'cn'=>'凡客诚品',
                            'url'=>'www.vancl.com',
                            'ico'=>'http://i.vanclimg.com/common/favicon/favicon.ico'
                            ),
                'm18'=>array(
                            'cn'=>'麦考林',
                            'url'=>'www.m18.com',
                            'ico'=>'http://list.m18.com/favicon.ico'
                            ),
                'paipai'=>array(    
                        'cn'=>'拍拍',
                        'url'=>'www.paipai.com',
                        'ico'=>'http://www.paipai.com/favicon.ico'
                ),
                'moonbasa'=>array(    
                        'cn'=>'梦芭莎',
                        'url'=>'http://www.moonbasa.com',
                        'ico'=>'http://www.moonbasa.com/favicon.ico'
                ),
                'mbaobao'=>array(    
                        'cn'=>'麦包包',
                        'url'=>'http://www.mbaobao.com',
                        'ico'=>'http://www.mbaobao.com/favicon.ico'
                ),
                'okbuy'=>array(    
                        'cn'=>'好乐买',
                        'url'=>'http://www.okbuy.com',
                        'ico'=>'http://www.okbuy.com/favicon.ico'
                ),
                'letao'=>array(    
                        'cn'=>'乐淘',
                        'url'=>'http://www.letao.com',
                        'ico'=>'http://www.letao.com/favicon.ico'
                ),
                'shishangqiyi'=>array(
                        'cn'=>'时尚起义',
                        'url'=>'http://www.shishangqiyi.com',
                        'ico'=>'http://www.shishangqiyi.com/favicon.ico'
                ),
                'lamiu'=>array(
                        'cn'=>'兰缪',
                        'url'=>'http://www.lamiu.com',
                        'ico'=>'http://www.lamiu.com/favicon.ico'
                ),
                '5lux'=>array(
                        'cn'=>'第五大道',
                        'url'=>'http://www.5lux.com',
                        'ico'=>'http://www.5lux.com/favicon.ico'
                ),
                'gaojie'=>array(
                        'cn'=>'高街',
                        'url'=>'http://www.gaojie.com',
                        'ico'=>'http://www.gaojie.com/favicon.ico'
                ),
                'sephora'=>array(
                        'cn'=>'丝芙兰',
                        'url'=>'http://www.sephora.cn',
                        'ico'=>'http://www.sephora.com/favicon.ico'
                        ),
                
        )
);
